Installation
npm install @trustchex/react-native-sdk
Install Dependencies
npm install \
@react-native-community/image-editor@^4.3.0 \
@react-navigation/native@^7.1.14 \
@react-navigation/native-stack@^7.3.21 \
lottie-react-native@^7.2.4 \
react-native-compressor@^1.12.0 \
react-native-fast-opencv@^0.4.6 \
react-native-fs@^2.20.0 \
react-native-gesture-handler@^2.27.1 \
react-native-get-random-values@^1.11.0 \
react-native-nfc-manager@^3.16.2 \
react-native-paper@^5.14.5 \
react-native-safe-area-context@^5.5.2 \
react-native-screens@^4.13.1 \
react-native-svg@^15.12.0 \
react-native-tts@^4.1.1 \
react-native-video@^6.16.1 \
react-native-vision-camera@^4.7.1 \
react-native-webview@^13.15.0 \
react-native-worklets-core@^1.6.0 \
vision-camera-cropper@^1.3.1
Babel Config
Update babel.config.js
:
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [
'react-native-worklets-core/plugin',
'react-native-paper/babel',
],
};
iOS Setup
Add to Info.plist
:
<key>NSCameraUsageDescription</key>
<string>The app captures images of your ID, passport, and face, and records a video for
secure identity verification and ensure compliance with KYC regulations.</string>
<key>NSMicrophoneUsageDescription</key>
<string>The app records a video with audio for secure identity verification and ensure
compliance with KYC regulations.</string>
<key>NFCReaderUsageDescription</key>
<string>The app securely reads ID or passport data using NFC to verify your identity and
ensure compliance with KYC regulations.</string>
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>NDEF</string>
<string>TAG</string>
</array>
Set minimum iOS version in ios/Podfile
:
platform :ios, '15.6'
Android Setup
Add to AndroidManifest.xml
:
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature android:name="android.hardware.camera" android:required="true" />
<uses-feature android:name="android.hardware.nfc" android:required="false" />
Update android/app/build.gradle
:
android {
compileSdkVersion 36
defaultConfig {
minSdkVersion 31
targetSdkVersion 36
}
}